<?php


namespace App\Listeners;

use App\Events\CreateOrder;

class BindTableRecordOrderNo
{

    public function handle(CreateOrder $event)
    {
        //把事件分发到所有该事件相应的已经注册了的监听器上
        //event(new OrderShipped($order));
        //绑定逻辑
//        $event->order
    }

    public function failed(CreateOrder $event, $exception)
    {
        //
    }
}